package cn.zwxky.android.staff.Approve;

import android.content.Context;

import com.zgscwjm.lsfbbasetemplate.adapter.CommonAdapter;
import com.zgscwjm.lsfbbasetemplate.adapter.CommonRecycAdapter;
import com.zgscwjm.lsfbbasetemplate.adapter.ViewHolder;
import com.zgscwjm.lsfbbasetemplate.adapter.ViewHolderRecyc;

import java.util.List;

import cn.zwxky.android.staff.R;
import cn.zwxky.android.staff.Utils.URLString;

/**
 * Created by Administrator on 2017/4/7 0007.
 */

//public class TaskDetailsChatAdapter extends CommonRecycAdapter<TaskDetailsChatBean.ListBean> {
//    public TaskDetailsChatAdapter(Context context, List<TaskDetailsChatBean.ListBean> list, int layoutId) {
//        super(context, list, layoutId);
//    }
//
//    @Override
//    public void convert(ViewHolderRecyc holder, TaskDetailsChatBean.ListBean model) {
//        holder.setImg(R.id.fg_my_img_head, URLString.IMG_URL + model.getImg(), R.mipmap.img_my_details_head);
//        holder.setText(R.id.item_img_follow_text_name, model.getName());
//        holder.setText(R.id.item_img_follow_text_tieme, model.getTimes());
//        holder.setText(R.id.item_img_follow_text_info, model.getContent());
//    }
//}

public class TaskDetailsChatAdapter extends CommonAdapter<TaskDetailsChatBean.ListBean> {

    public TaskDetailsChatAdapter(Context context, int layoutId, List<TaskDetailsChatBean.ListBean> list) {
        super(context, layoutId, list);
    }

    @Override
    public void convert(ViewHolder holder, TaskDetailsChatBean.ListBean model) {
        holder.setImg(R.id.fg_my_img_head, URLString.IMG_URL + model.getImg(), R.mipmap.img_my_details_head);
        holder.setText(R.id.item_img_follow_text_name, model.getName());
        holder.setText(R.id.item_img_follow_text_tieme, model.getTimes());
        holder.setText(R.id.item_img_follow_text_info, model.getContent());
    }
}
